const roleListReducer = (prevState=[],action)=>{
  let {type,payload} = action
  switch(type){
      case "SetTodoList":
          var newstate = [...prevState,...payload]
          newstate.roleList = payload
          return newstate
      default:
          return prevState
  }
}
export default roleListReducer